const { name } = require('../../package.json')
const config = {
    // 数据汇集与管理分系统
    dataManage: {
        pages: {
            index: {
                entry: "/subsystem/src/applications/dataManage/views/index.vue",
                template: "public/index.html",
                filename: "index.html",
            },
        },
        devServer: {
            port: 8080, // 端口地址
            disableHostCheck: true,
            hot: true,
            open: true,
            // 设置代理
            proxy: {
                "/eopenhapi": {
                    target: "http://open.jdpay.com",
                    changeOrigin: true,
                }
            },
        },
    },
    // 数据质量与监测能力分析分系统
    dataMonitor: {
        pages: {
            index: {
                entry: "/subsystem/src/applications/dataMonitor/views/index.vue",
                template: "public/index.html",
                filename: "index.html",
            },
        },
        devServer: {
            port: 8080, // 端口地址
            disableHostCheck: true,
            hot: true,
            open: true,
            // 设置代理
            proxy: {
                "/eopenhapi": {
                    target: "http://open.jdpay.com",
                    changeOrigin: true,
                }
            },
        },
    },
    // 数据公报与服务分系统
    dataServer: {
        pages: {
            index: {
                entry: "/subsystem/src/applications/dataServer/views/index.vue",
                template: "public/index.html",
                filename: "index.html",
            },
        },
        devServer: {
            port: 8080, // 端口地址
            disableHostCheck: true,
            hot: true,
            open: true,
            // 设置代理
            proxy: {
                "/eopenhapi": {
                    target: "http://open.jdpay.com",
                    changeOrigin: true,
                }
            },
        },
    },
    // ****综合研判分系统
    comAnalysis: {
        pages: {
            index: {
                entry: "/subsystem/src/applications/comAnalysis/views/index.vue",
                template: "public/index.html",
                filename: "index.html",
            },
        },
        devServer: {
            port: 8080, // 端口地址
            disableHostCheck: true,
            hot: true,
            open: true,
            // 设置代理
            proxy: {
                "/eopenhapi": {
                    target: "http://open.jdpay.com",
                    changeOrigin: true,
                }
            },
        },
    },
    // ****综合研判分系统
    coringQB: {
        pages: {
            index: {
                entry: "/subsystem/src/applications/coringQB/views/index.vue",
                template: "public/index.html",
                filename: "index.html",
            },
        },
        devServer: {
            port: 8080, // 端口地址
            disableHostCheck: true,
            hot: true,
            open: true,
            // 设置代理
            proxy: {
                "/eopenhapi": {
                    target: "http://open.jdpay.com",
                    changeOrigin: true,
                }
            },
        },
    },
    qbDistribute: {
        pages: {
            index: {
                entry: "/subsystem/src/applications/qbDistribute/views/index.vue",
                template: "public/index.html",
                filename: "index.html",
            }
        }
    }
};
module.exports = config;